package operation;

import book.BookLise;

public class ExitOperation implements IOperation {
    @Override
    public void work(BookLise bookLise) {
        System.out.println("退出系统");

        for (int i = 0; i < bookLise.getNowSize(); i++) {
            bookLise.setBooks(null,i);
        }

        bookLise.setNowSize(0);

        System.exit(0);
    }

}
